# -*- coding: utf-8 -*-
class sessionPage():
    def __init__(self,driver):
        self.driver=driver
    # 团险业务
    def btnGroup(self):
        return self.driver.find_element_by_xpath('//*[@id="menuClass1"]/ul/li[2]/a')
    # 收付费管理
    def btnAcceptPayment(self):
        return self.driver.find_element_by_xpath('//*[@id="8"]')
    # 进账管理
    def btnPayMan(self):
        return self.driver.find_element_by_xpath('//*[@id="0"]/b')
    # 进账申请
    def btnSessionApply(self):
        return self.driver.find_element_by_xpath('//*[@id="huadong1"]/dl[1]/dd[1]/a')
    # 客户银行账号
    def inpRecAccountNum(self):
        return self.driver.find_element_by_xpath('//*[@id="RecAccountNum"]')
    # 查询
    def btnQuery(self):
        return self.driver.find_element_by_xpath('//*[@id="divInfo1"]/input')
    def btnTempFeeInfoGridChk(self):
        return self.driver.find_element_by_xpath('//*[@id="TempFeeInfoGridChk0"]')
    # 客户经理姓名
    def inptAgentName(self):
        return self.driver.find_element_by_xpath('//*[@id="tAgentName"]')
    # 投保单位名称
    def inptGrpName(self):
        return self.driver.find_element_by_xpath('//*[@id="tGrpName"]')
    # 金额
    def inpMoney(self):
        return self.driver.find_element_by_xpath('//*[@id="Money"]')
    # 备注
    def inpConfirmDesc(self):
        return self.driver.find_element_by_xpath('//*[@id="ConfirmDesc"]')
    # 业务类型
    def btnBUssGrid1(self):
        return self.driver.find_element_by_xpath('//*[@id="BUssGrid1r0"]')
    def secBUssGrid1(self):
        return self.driver.find_element_by_xpath('//*[@id="codeselect"]')
    # 业务号码
    def inpBUssGrid2(self):
        return self.driver.find_element_by_xpath('//*[@id="BUssGrid2r0"]')
    # 金额
    def inpBUssGrid3(self):
        return self.driver.find_element_by_xpath('//*[@id="BUssGrid3r0"]')
    # 新增
    def btnAdd(self):
        return self.driver.find_element_by_xpath('//*[@id="fm"]/input[4]')
    # 进账申请查询列表
    def btnTempFeehGridSel(self):
        return self.driver.find_element_by_xpath('//*[@id="TempFeehGridSel0"]')
    # 上传附件
    def btnUpload(self):
        return self.driver.find_element_by_xpath('//*[@id="fm"]/input[8]')
    # 附件类型
    def btnAttachType(self):
        return self.driver.find_element_by_xpath('//*[@id="AttachType"]')
    def secAttachType(self):
        return self.driver.find_element_by_xpath('//*[@id="codeselect"]')
    # 附件路径
    def btnUploadPath(self):
        return self.driver.find_element_by_xpath('//*[@id="UploadPath"]')
    # 上传附件
    def btnUploadButton(self):
        return self.driver.find_element_by_xpath('//*[@id="UploadButton"]')
    # 关闭
    def btnClose(self):
        return self.driver.find_element_by_xpath('//*[@id="divAttachmentUpload"]/input[4]')
    # 提交录入
    def btnSubmit(self):
        return self.driver.find_element_by_xpath('//*[@id="fm"]/input[7]')





